<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div class="header">
	<a href="page/site_edit.action" class="logo"></a>

	<div class="buttons"> 
            <div class="popup">
                <div class="label">
                	 <c:choose>
	                	<c:when test="${!empty global_member.site && !empty global_member.site.siteCode}">
	                		<a  class="tipb" data-original-title="主页二维码" href="download/l_qrcode.action?url=<%=basePath %>d_${global_member.site.siteCode }"> 
                			<span class="icos-gridview"></span></a>
	                	</c:when>
	                	<c:otherwise>
	                		<a class="tipb" data-original-title="主页二维码" href="download/l_qrcode.action?url=<%=basePath %>d_${global_member.id }"> 
                			<span class="icos-gridview"></span></a>
	                	</c:otherwise>
	                </c:choose>
                	
                </div> 
            </div>            
            <div class="popup">
                <div class="label"><a class="tipb" data-original-title="后台主页" href="page/site_edit.action"><span class="icos-refresh"></span></a></div>
                
            </div>
            <div class="popup">
                <div class="label">
                <c:choose>
                	<c:when test="${!empty global_member.site && !empty global_member.site.siteCode}">
                		<a class="tipb" data-original-title="查看主页"  href="d_${global_member.site.siteCode }.do" target="_blank"><span class="icos-home"></span></a>
                	</c:when>
                	<c:otherwise>
                		<a class="tipb" data-original-title="查看主页" href="d_${global_member.id }.do" target="_blank"><span class="icos-home"></span></a>
                	</c:otherwise>
                </c:choose> 
                </div> 
            </div> 
    </div>
 
</div>